package com.jadefashion.service.impl;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;

public class sd {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        c.add(Calendar.MONTH,-11);
        List<String> list=new ArrayList<>();
        for (int i = 0; i < 12; i++) {
            int year = c.get(Calendar.YEAR);
            int month = c.get(Calendar.MONTH);
            list.add(year+"-"+(month+1));
            c.add(Calendar.MONTH,1);
        }
        System.out.println(list);
    }
}
